cmake_minimum_required(VERSION 3.10.0)


file(GLOB_RECURSE files "*.h" "*.cpp" "*.cu")
add_executable(decoder_demo ${files})

target_link_libraries(decoder_demo PRIVATE PkgConfig::AvUtil)
target_link_libraries(decoder_demo PRIVATE PkgConfig::AvCodec)
target_link_libraries(decoder_demo PRIVATE PkgConfig::AvFilter)
target_link_libraries(decoder_demo PRIVATE PkgConfig::AvFormat)
target_link_libraries(decoder_demo PRIVATE PkgConfig::SwScale)
target_link_libraries(decoder_demo PRIVATE PkgConfig::SwResample)
target_link_libraries(decoder_demo PRIVATE PkgConfig::AvDevice)

target_link_libraries(decoder_demo PRIVATE -ldl)
target_link_libraries(decoder_demo PRIVATE spdlog)
target_link_libraries(decoder_demo PRIVATE ${OpenCV_LIBS})
target_link_libraries(decoder_demo PRIVATE zltoolkit)

target_link_libraries(decoder_demo PRIVATE 
    ${CUDA_LIBRARIES} 
    ${CUDA_cudart_LIBRARY}  
    ${CUDA_cuda_LIBRARY} 
    ${CUDA_nppc_LIBRARY}
    ${CUDA_nppial_LIBRARY}
    ${CUDA_nppicc_LIBRARY}
)
